﻿
package collection;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Io4 {
public static void main(String[] args) throws IOException {
	File file=new File("D:/ͼƬ/qq.jpg");
	File file1=new File("C://myFile/ͼƬ.jpg");
	FileInputStream in=new FileInputStream(file);
	FileOutputStream out=new FileOutputStream(file1);
	byte [] byt=new byte[1024];
	while(in.read(byt)!=-1){
		out.write(byt);
		System.out.println("ͼƬش׆ԉ٦á");
	}
	in .close();
	out.close();
	
}
}